package web;

public class CacLoaiSanPham {
private String maloaisp;
private String tenloaisp;
public CacLoaiSanPham(String maloaisp,String tenloaisp){
	this.maloaisp=maloaisp;
	this.tenloaisp=tenloaisp;
}
public CacLoaiSanPham(){
	
}
public String getMaloaisp() {
	return maloaisp;
}
public void setMaloaisp(String maloaisp) {
	this.maloaisp = maloaisp;
}
public String getTenloaisp() {
	return tenloaisp;
}
public void setTenloaisp(String tenloaisp) {
	this.tenloaisp = tenloaisp;
}
@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((maloaisp == null) ? 0 : maloaisp.hashCode());
	return result;
}
@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	CacLoaiSanPham other = (CacLoaiSanPham) obj;
	if (maloaisp == null) {
		if (other.maloaisp != null)
			return false;
	} else if (!maloaisp.equals(other.maloaisp))
		return false;
	return true;
}
}
